import hyRequest from '../index'
import { loginType } from './types'

enum loginUrl {
  AccountLogin = '/login',
  UserInfo = '/users/',
  UserMenus = '/role/'
}
export function loginApi(data:loginType) {
  return hyRequest.post({
    url: loginUrl.AccountLogin,
    data
  })
}
